| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

DefaultTestObserver.h
1 // DefaultTestObserver.h
3 //
5
6 namespace nkDebug
7 {
16 class DefaultTestObserver final : public TestObserver
17 {
18 public :
19
20 // Functions
21 // Constructor, destructor
25 DefaultTestObserver () noexcept ;
29 virtual ~DefaultTestObserver () ;
30
31 // Setters
40 void setLiveFormatter (OutputFormatter* formatter) ;
49 void setFinalFormatter (OutputFormatter* formatter) ;
58 void setLiveOutput (OutputTarget* target) ;
67 void setFinalOutput (OutputTarget* target) ;
68
69 // Hooks
70 virtual void onRunLaunch (const TestRunParameters& params) override ;
71 virtual void onRunEnd () override ;
72 virtual void onClassLaunch (const TestClassObserverInformation& info) override ;
73 virtual void onClassBypass (const TestClassObserverInformation& info) override ;
74 virtual void onClassEnd (const TestClassObserverInformation& info) override ;
75 virtual void onTestLaunch (const TestFunctionObserverInformation& info) override ;
76 virtual void onTestBypass (const TestFunctionObserverInformation& info) override ;
77 virtual void onTestSuccess (const TestFunctionObserverInformation& info) override ;
78 virtual void onTestFailure (const TestFunctionObserverInformation& info) override ;
79 } ;
80 }
nkDebug::DefaultTestObserver::onClassLaunch
virtual void onClassLaunch(const TestClassObserverInformation &info) override
nkDebug::DefaultTestObserver::onClassBypass
virtual void onClassBypass(const TestClassObserverInformation &info) override
nkDebug::TestObserver
Base for observer classes allowing to get notifications from a test run.
Definition: TestObserver.h:15
nkDebug::DefaultTestObserver::setFinalOutput
void setFinalOutput(OutputTarget *target)
nkDebug::DefaultTestObserver::onTestBypass
virtual void onTestBypass(const TestFunctionObserverInformation &info) override
nkDebug::DefaultTestObserver::setLiveOutput
void setLiveOutput(OutputTarget *target)
nkDebug::OutputFormatter
Base class for test's output formatting.
Definition: OutputFormatter.h:15
nkDebug::DefaultTestObserver::onTestFailure
virtual void onTestFailure(const TestFunctionObserverInformation &info) override
nkDebug::DefaultTestObserver::onRunLaunch
virtual void onRunLaunch(const TestRunParameters &params) override
nkDebug::TestClassObserverInformation
Information provided during a TestClass run.
Definition: TestClassObserverInformation.h:12
nkDebug::DefaultTestObserver::DefaultTestObserver
DefaultTestObserver() noexcept
nkDebug::DefaultTestObserver::onTestSuccess
virtual void onTestSuccess(const TestFunctionObserverInformation &info) override
nkDebug::DefaultTestObserver::onRunEnd
virtual void onRunEnd() override
nkDebug::DefaultTestObserver::setFinalFormatter
void setFinalFormatter(OutputFormatter *formatter)
nkDebug::DefaultTestObserver::onClassEnd
virtual void onClassEnd(const TestClassObserverInformation &info) override
nkDebug::TestRunParameters
Parameters allowing to drive a test run sequence.
Definition: TestRunParameters.h:12
nkDebug::TestFunctionObserverInformation
Information provided during a function run.
Definition: TestFunctionObserverInformation.h:12
nkDebug::DefaultTestObserver
Default implementation of a test run observer.
Definition: DefaultTestObserver.h:17
nkDebug::DefaultTestObserver::setLiveFormatter
void setLiveFormatter(OutputFormatter *formatter)
nkDebug
Encompasses all API of component NilkinsDebug.
Definition: LogManager.h:7
nkDebug::OutputTarget
Allows to customize the output target of test results.
Definition: OutputTarget.h:12
nkDebug::DefaultTestObserver::onTestLaunch
virtual void onTestLaunch(const TestFunctionObserverInformation &info) override